package edu.fourtwelve.srlzd_data;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author Christopher C. Hunt
 */
public class AccountData implements Serializable{
    private long accountId;
    private long accountNum;
    private String accountType;
    private List<Transaction> transactions;
    private double balance;
    
    public AccountData(long accountId, long accountNum, String accountType, List transactions, double balance) {
        this.accountId = accountId;
        this.accountNum = accountNum;
        this.accountType = accountType;
        this.transactions = transactions;
        this.balance = balance;
    }
    
    public long getAccountNum() {
        return accountNum;
    }
    
    public String getAccountType() {
        return accountType;
    }
    
    public List<Transaction> getTransactions() {
        return transactions;
    }
    
    public boolean addTransaction(Transaction trans) {
        return transactions.add(trans);
    }
    
    public double getBalance() {
        return balance;
    }
    
    public long getAccountId() {
        return accountId;
    }
}
